package vn.edu.hut.soict.translate.wordgraph;

public class WordGraphStatistic {
	private WordGraph[][] graphs;
	
	public WordGraphStatistic() {
		graphs = (new WordGraphReader().read(WordGraph.GRAPH_FILE));
	}
	
	public void printStatistic() {
		System.out.print("cW\tfW\tState count\n");
		for (int i = 0; i < graphs.length; i++) {
			for (int j = 0; j < graphs[i].length; j++) {
				if (graphs[i][j] != null) {
					System.out.printf("%d\t%d\t%d\n", i, j, graphs[i][j].getStates().size());
				}
			}
		}
	}
	
	public static void main(String[] args) {
		WordGraphStatistic statistic = new WordGraphStatistic();
		statistic.printStatistic();
	}
}
